Skip to content

build(deps): Upgrade otelcollector to v0.149.0#1534

Closed
azure-monitor-assistant[bot] wants to merge 4 commits intomainfrom
bot/otelcollector-upgrade-v0.149.0
Closed

build(deps): Upgrade otelcollector to v0.149.0#1534
azure-monitor-assistant[bot] wants to merge 4 commits intomainfrom
bot/otelcollector-upgrade-v0.149.0

Conversation

@azure-monitor-assistant
Copy link
Copy Markdown
Contributor

This PR upgrades the otelcollector to the latest version available for the opentelemetry-collector and opentelemetry-operator.

It was automatically generated by the GitHub Actions workflow.

The summary of the OSS changelog is below:

Prometheusreceiver Changes

v0.148.0 to v0.149.0

Generated on: 2026-04-24 07:39:04


v0.149.0

  • [BREAKING] receiver/prometheus: Remove the deprecated report_extra_scrape_metrics receiver configuration option and obsolete extra scrape metric feature gates. (#44181) report_extra_scrape_metrics is no longer accepted in prometheusreceiver configuration. Control extra scrape metrics through the PromConfig.ScrapeConfigs.ExtraScrapeMetrics setting instead.
  • [FEATURE] receiver/prometheus: Add support for reading instrumentation scope attributes from otel_scope_<attribute-name> labels while feature-gating deprecation of otel_scope_info. (#41502) Scope attributes are always extracted from otel_scope_<attribute-name> labels on metrics. The receiver.prometheusreceiver.IgnoreScopeInfoMetric feature gate (alpha, disabled by default) controls only whether the legacy otel_scope_info metric is ignored for scope attribute extraction. When the gate is disabled, both mechanisms coexist to support migration. See the specification change for motivation: prometheus: handle schema URL and scope attributes open-telemetry/opentelemetry-specification#4505
  • [BUG FIX] receiver/prometheus_remote_write: Count target_info samples in PRW response stats (#47108)

Summary

Category Count
Breaking Changes 1
Features 1
Bug Fixes 1
Other Changes 0
Total 3

Target-allocator Changes

v0.148.0 to v0.149.0

Generated on: 2026-04-24 07:39:25


0.149.0

  • [BUG FIX] auto-instrumentation, opamp, target allocator: Fix Env slice aliasing in Apache HTTPD, Nginx, OpAMP Bridge, and Target Allocator container builders when the spec slice has spare backing-array capacity (#4954)

Summary

Category Count
Breaking Changes 0
Features 0
Bug Fixes 1
Other Changes 0
Total 1

@azure-monitor-assistant azure-monitor-assistant Bot requested a review from a team as a code owner April 24, 2026 07:39
@azure-monitor-assistant
Copy link
Copy Markdown
Contributor Author

⚠️ Building the otelcollector failed. Manual review for breaking changes is required. View build errors below.

View build errors
rm -rf otelcollector
go get
go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o otelcollector .
# github.com/vishiy/opentelemetry-collector-builder
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/gcc -m64 -Wl,-z,relro -pie -Wl,--build-id=0xb178a65757706a002ed7a14fa35be574ff734cab -o $WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dynamic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=crosscall2 -Wl,--compress-debug-sections=zlib /tmp/go-link-3073196501/go.o /tmp/go-link-3073196501/000000.o /tmp/go-link-3073196501/000001.o /tmp/go-link-3073196501/000002.o /tmp/go-link-3073196501/000003.o /tmp/go-link-3073196501/000004.o /tmp/go-link-3073196501/000005.o /tmp/go-link-3073196501/000006.o /tmp/go-link-3073196501/000007.o /tmp/go-link-3073196501/000008.o /tmp/go-link-3073196501/000009.o /tmp/go-link-3073196501/000010.o /tmp/go-link-3073196501/000011.o /tmp/go-link-3073196501/000012.o /tmp/go-link-3073196501/000013.o /tmp/go-link-3073196501/000014.o /tmp/go-link-3073196501/000015.o /tmp/go-link-3073196501/000016.o /tmp/go-link-3073196501/000017.o /tmp/go-link-3073196501/000018.o /tmp/go-link-3073196501/000019.o /tmp/go-link-3073196501/000020.o /tmp/go-link-3073196501/000021.o /tmp/go-link-3073196501/000022.o -O2 -g -lresolv -O2 -g -O2 -g -lpthread -Wl,-z,now
/usr/bin/ld: /tmp/go-link-3073196501/go.o: warning: relocation against `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512]' in read-only section `.text'
/usr/bin/ld: /tmp/go-link-3073196501/go.o: in function `github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor.(*Config).newTraceParserCollection.WithTraceCommonParsers.withCommonParsers[go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512].func4':
go.go:(.text+0x1025c48): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512]'
/usr/bin/ld: go.go:(.text+0x1025cba): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512]'
/usr/bin/ld: go.go:(.text+0x1025d09): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512]'
/usr/bin/ld: go.go:(.text+0x1025d7b): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.331ec2093ec1224dffceb210a81ea92a6a89942501e40a1b74473331a80cb512]'
/usr/bin/ld: /tmp/go-link-3073196501/go.o: in function `github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor.(*Config).newMetricParserCollection.WithMetricCommonParsers.withCommonParsers[go.shape.c209bba345eda6872c4ebaf3423b2133fa6e484ffc1040cb56dc1e81931b5359].func4':
go.go:(.text+0x1026a48): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.c209bba345eda6872c4ebaf3423b2133fa6e484ffc1040cb56dc1e81931b5359]'
/usr/bin/ld: go.go:(.text+0x1026aba): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.c209bba345eda6872c4ebaf3423b2133fa6e484ffc1040cb56dc1e81931b5359]'
/usr/bin/ld: go.go:(.text+0x1026b09): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.c209bba345eda6872c4ebaf3423b2133fa6e484ffc1040cb56dc1e81931b5359]'
/usr/bin/ld: go.go:(.text+0x1026b7b): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.c209bba345eda6872c4ebaf3423b2133fa6e484ffc1040cb56dc1e81931b5359]'
/usr/bin/ld: /tmp/go-link-3073196501/go.o: in function `github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor.(*Config).newLogParserCollection.WithLogCommonParsers.withCommonParsers[go.shape.464e2f1a538fb2f1502069b297fe49ad266dc3ee8ab2e4207c9497507f8f984c].func3':
go.go:(.text+0x10277c8): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.464e2f1a538fb2f1502069b297fe49ad266dc3ee8ab2e4207c9497507f8f984c]'
/usr/bin/ld: go.go:(.text+0x102783a): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.464e2f1a538fb2f1502069b297fe49ad266dc3ee8ab2e4207c9497507f8f984c]'
/usr/bin/ld: go.go:(.text+0x1027889): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.464e2f1a538fb2f1502069b297fe49ad266dc3ee8ab2e4207c9497507f8f984c]'
/usr/bin/ld: go.go:(.text+0x10278fb): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.464e2f1a538fb2f1502069b297fe49ad266dc3ee8ab2e4207c9497507f8f984c]'
/usr/bin/ld: /tmp/go-link-3073196501/go.o: in function `github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor.(*Config).newProfileParserCollection.WithProfileCommonParsers.withCommonParsers[go.shape.76b7ef35ab88b8274bded86d23fb1f6d633c276d2ebdb3f858974f0a7589830b].func3':
go.go:(.text+0x10282a8): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.76b7ef35ab88b8274bded86d23fb1f6d633c276d2ebdb3f858974f0a7589830b]'
/usr/bin/ld: go.go:(.text+0x102831a): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlresource.TransformContext,go.shape.76b7ef35ab88b8274bded86d23fb1f6d633c276d2ebdb3f858974f0a7589830b]'
/usr/bin/ld: go.go:(.text+0x1028369): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithConditionConverter[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.76b7ef35ab88b8274bded86d23fb1f6d633c276d2ebdb3f858974f0a7589830b]'
/usr/bin/ld: go.go:(.text+0x10283db): undefined reference to `github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl.WithParserCollectionContext[*github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlscope.TransformContext,go.shape.76b7ef35ab88b8274bded86d23fb1f6d633c276d2ebdb3f858974f0a7589830b]'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

make: *** [Makefile:8: otelcollector] Error 1

gracewehner and others added 3 commits April 27, 2026 11:21
Extract APIServer config and manager into a dedicated internal/apiserver
package. The API server and target allocator now share a promCfg pointer
and RWMutex so that target allocator config updates are reflected by the
API server endpoints.

Key changes:
- New internal/apiserver package with Config, Manager, and tests
- APIServer field changed from value type to *apiserver.Config pointer
- Target allocator Manager accepts shared cfgLock parameter
- Removed initAPIServer from metrics_receiver.go (moved to manager)
- Added config_prometheus_api_server.yaml test data
- Added metrics_receiver_config_pointer_test.go for shared state tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The API server config now requires an explicit enabled: true flag
since the field changed to a pointer type with defaults disabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore applyCfgWithLock() and updatePrometheusConfig() that were
lost when applying the upstream apiserver refactor. These ensure
the shared promCfg pointer is properly synchronized between the
target allocator (writer) and API server (reader).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-monitor-assistant
Copy link
Copy Markdown
Contributor Author

Closing in favor of a newer otelcollector version upgrade (v0.150.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant